stackswitcher: Avoid calling gtk_widget_destroy()
authorTimm Bäder <mail@baedert.org>
Fri, 21 Feb 2020 08:08:05 +0000 (09:08 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 25 Feb 2020 10:08:25 +0000 (11:08 +0100)
gtk/gtkstackswitcher.c

index 979d0cdd111f700b2f24a6228354ecb1229cf59d..48173692eb7af70311315ed11e7c2879c27c29a2 100644 (file)
@@ -136,7 +136,7 @@ rebuild_child (GtkWidget   *self,
 
   button_child = gtk_bin_get_child (GTK_BIN (self));
   if (button_child != NULL)
-    gtk_widget_destroy (button_child);
+    gtk_container_remove (GTK_CONTAINER (self), button_child);
 
   button_child = NULL;